<template>
  <div>
    <div>
      <van-nav-bar title="我的收藏" left-arrow @click-left="onClickLeft" />
    </div>
    <div class="collectgoods">
      <div class="img">
        <img src="@/assets/tabs/p7.png" alt="" />
      </div>
      <div class="wenzi">
        <div>
          <span>高端办公游戏大容量强劲处理器CPU手机</span>
        </div>
        <div class="jiage">
          <span class="price">￥2000.00</span>
          <span class="yishou">已售1.2万件</span>
          <van-button class="btn1" color="#ff6a00" plain round
            >取消收藏</van-button
          >
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const onClickLeft = () => history.back()
</script>

<style lang="scss" scoped>
.collectgoods img {
  width: 80px;
}
.collectgoods {
  display: flex;
  margin-top: 10px;
  border-bottom: 1px dashed #f2f2f2;
}
.price {
  color: red;
  font-size: 14px;
}
.jiage {
  margin-top: 25px;
}
.yishou {
  font-size: 12px;
  color: #ccc;
  margin-left: 10px;
}
.btn1 {
  margin-top: 10px;
  height: 25px;
  margin-right: 10px;
  margin-left: 50px;
}
</style>
<style>
:root {
  --van-nav-bar-background: #ff6a00;
  --van-nav-bar-height: 60px;
  --van-address-list-radio-color: #ff6a00;
}
</style>
